package com.mark.mall.admin.platform.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 销售单详情表
 * </p>
 *
 * @author admin
 * @since 2021-02-28
 */
@TableName(value = "t_o_detail")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OrderDetail对象", description = "销售单详情表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "销售单id")
    @TableField("orderid")
    private String orderid;

    @ApiModelProperty(value = "物料id")
    @TableField("productid")
    private String productid;

    @ApiModelProperty(value = "物料价格")
    @TableField("c_price")
    private BigDecimal price;

    @ApiModelProperty(value = "购买数量")
    @TableField("c_num")
    private Integer num;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "c_createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;


}
